function getcount() {
    var msg = document.getElementById("MsgNum");
    if (ctx.length!=0) {
        $.ajax({
            url: "/getnotread",
            contentType: "application/json",
            dataType: "json",
            type: "get",
            success: function (data) {
                msg.innerText = (data.count).toString();
            }
        });
    }
}